package com;

import java.text.SimpleDateFormat;
import java.util.Date;

public class app {
    public static void main(String[] args)throws Exception {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date parse = sdf.parse("2021-4-1");
        System.out.println(parse);

    }
}
